﻿@using PNProject.EF;
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/AdminLayout.cshtml";
    List<Category> model = (List<Category>)ViewData["model"];
}

<div class="admin_head">
Danh sách danh mục sản phẩm dịch vụ
</div>


<div class="admin_content">
<a class="newobject" href="/AdminCategory/Create">Tạo mới</a>
   <br />
   <br />
@foreach (var item in model)
{
    <div class="item-div">
    <img src="/Images/Base/chimuc.jpg" style="margin-right:10px; margin-bottom:1px;"/>
    <a class="item-delete" href="/AdminCategory/Delete/@item.CategoryID.ToString()">Xóa</a>
    <a class="item-link" href="AdminCategory/Edit/@item.CategoryID.ToString()">@item.CategoryName</a>
    </div>
}
</div>